package com.lanchetech.admin.erp;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("tbl_access_token")
public class AccessTokenDO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 店铺id
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 标志
     */
    @TableField("mark")
    private String mark;

    /**
     * access_token有效期【单位是秒】 2592000  30天
     */
    @TableField("expires_in")
    private Long expiresIn;
    /**
     * 访问令牌
     */
    @TableField("access_token")
    private String accessToken;
    /**
     * 固定值：all
     */
    private String scope;
    /**
     * 更新令牌
     */
    @TableField("refresh_token")
    private String refreshToken;
    /**
     * access_token 过期时间
     */
    @TableField("expiration_time")
    private Date expirationTime;

}
